import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login.vue' //登录页
import form from '@/components/form.vue' //报名表单
import selectLunTan from '@/components/selectLunTan.vue' //选择论坛
import table from '@/components/table.vue' //选择论坛
import suess from '@/components/suess.vue' //报名成功页面
import editPop from '@/components/editPop.vue' //编辑个人信息
import check from '@/components/check.vue' //服务协议


Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'form',
      component: form,
      meta: {
        title: '大会',
        keepAlive: true
      }
    },

    // {
    //   path: '/',
    //   name: 'login',
    //   component: login,
    //   meta: {
    //     title: '大会'
    //   }
    // },
    // {
    //   path: '/login',
    //   name: 'login',
    //   component: login,
    //   meta: {
    //     title: '大会'
    //   }
    // },

    {
      path: '/form',
      name: 'form',
      component: form,
      meta: {
        title: '大会',
        keepAlive: true
      }
    },
    {
      path: '/table',
      name: 'table',
      component: table,
      meta: {
        title: '大会'
      }
    },
    {
      path: '/editPop',
      name: 'editPop',
      component: editPop,
      meta: {
        title: '添加参会人'
      }
    },
    {
      path: '/editPop/:templateId',
      name: 'editPop',
      component: editPop,
      meta: {
        title: '添加参会人'
      }
    },
    {
      path: '/selectLunTan',
      name: 'selectLunTan',
      component: selectLunTan,
      meta: {
        title: '选择论坛'
      }
    },
    {
      path: '/selectLunTan/:bbsId',
      name: 'selectLunTan',
      component: selectLunTan,
      meta: {
        title: '选择论坛'
      }
    },
    {
      path: '/suess',
      name: 'suess',
      component: suess,
      meta: {
        title: '预约成功'
      }
    },
    {
      path: '/check',
      name: 'check',
      component: check,
      meta: {
        title: '大会'
      }
    },

  ]

})
